﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ChongJu.EventManager;
using ChongJu.GlobalInfo;
using ChongJu.ImageAnalyze;

namespace ChoJu.Single.Views
{
    /// <summary>
    /// SiteInfoView.xaml 的交互逻辑
    /// </summary>
    public partial class SiteInfoView : Window
    {
        public SiteInfoView()
        {
            InitializeComponent();

            tbkSite.Text = GlobalVar.SiteInfo.SiteName;
            tbkUnit.Text = GlobalVar.SiteInfo.UnitName;
            tbkModVersion.Text = GlobalVar.SiteInfo.ModTargetVersion;
            tbkModName.Text = AnalyzeService.Instance.GetFrist()?.Analyze.GetModelName();
            tbkDeviceName.Text = GlobalVar.SiteInfo.DeviceName;
            tbkDeviceID.Text =  GlobalVar.DeviceID;

            CommonEvent.OnMianFromOpacity(true);
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            CommonEvent.OnMianFromOpacity(false);
            Close();
        }
    }
}
